html
  height: 100%
  font-size: $rem

body
  position: relative
  display: flex
  flex-direction: column
  min-height: 100%
  background: #fff
  color: $font-black
  font-size: $font-size
  font-family: $font-family
  line-height: $text-line-height

*::-webkit-scrollbar
  width: 8px
  height: 8px

*::-webkit-scrollbar-thumb
  background: $light-blue

*::-webkit-scrollbar-track
  background-color: transparent

h1,
h2,
h3,
h4,
h5,
h6
  position: relative
  margin: 0.2rem 0
  color: lighten($font-color, 15%)
  font-weight: bold

#content-outer
  flex: 1 auto

*
  box-sizing: border-box

#content-inner
  .img-alt
    text-decoration: none

#toggle-sidebar
  position: fixed
  bottom: $sidebar-icon-top
  left: $sidebar-icon-left
  z-index: 100
  font-size: $sidebar-icon-size
  cursor: pointer

#go-up
  position: fixed
  right: $go-up-right
  bottom: $go-up-bottom
  z-index: 100
  font-size: $sidebar-icon-size
  opacity: 0
  cursor: pointer

.fancybox-caption
  text-align: center

.fireworks
  position: fixed
  z-index: -1
  pointer-events: none

hr
  position: relative
  margin: 2rem auto
  width: calc(100% - 4px)
  border: 2px dashed $pale-blue
  background: $white

  &:hover
    &:before
      left: calc(95% - 20px)

  &:before
    position: absolute
    top: -10px
    left: 5%
    z-index: 1
    color: $light-blue
    content: "\f0c4"
    font: normal normal normal 14px / 1 FontAwesome
    font-size: 20px
    transition: all 1s ease-in-out

// collapse/expand beautify
details
  padding: 0.3rem
  border: 2px solid darken($light-grey, 10%)

  summary
    color: $theme-color

// set <caption> of <figure> to center-align
// use class="not-code" to avoid conflicts because code also use <figure> tag
.not-code
  margin: 0.5em
  padding: 0.5em
  border: thin silver solid
  text-align: center

table
  overflow: auto
  width: 100%
  border-spacing: 0
  border-collapse: collapse

  thead
    background: alpha($a-link-color, 10%)

  th,
  td
    padding: 0.3rem 0.6rem
    border: 1px solid darken($light-grey, 10%)
    vertical-align: top

*::selection
  background: $selection
  color: $pale-grey

.text-center
  text-align: center

.pull-left
  float: left

.pull-right
  float: right

@media screen and (max-width: $bg)
  i#toggle-sidebar,
  #sidebar
    display: none

  body
    padding-left: 0 !important
